package cate.game.server.configuration.dao.game;

import cate.game.db.mongo.HeroDisplayDao;
import cate.game.display.po.HeroDisplay;
import cate.game.server.configuration.dao.MgIdHexDao;

public class MgHeroDisplayDao extends MgIdHexDao<HeroDisplay> implements HeroDisplayDao {

    @Override
    protected void writeIdHex(HeroDisplay entity, String idHex) {
        entity.uid = idHex;
    }

    @Override
    protected String readIdHex(HeroDisplay entity) {
        return entity.uid;
    }

    @Override
    protected Class<HeroDisplay> getEntityClass() {
        return HeroDisplay.class;
    }
}
